home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / clang / gnumake.zip / NEWS < prev    next >
Text File  |  1994-04-21  |  19KB  |  517 lines

  1. GNU make NEWS -- history of user-visible changes.  20 April 1994
  2.  
  3. Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  4. See the end for copying conditions.
  5.  
  6. Please send GNU make bug reports to bug-gnu-utils@prep.ai.mit.edu.
  7.  
  8. Version 3.71
  9.  
  10. * The automatic variables `$(@D)', `$(%D)', `$(*D)', `$(<D)', `$(?D)', and
  11.   `$(^D)' now omit the trailing slash from the directory name.  (This change
  12.   was made to comply with POSIX.2.)
  13.  
  14. * The source distribution now includes the Info files for the Make manual.
  15.   There is no longer a separate distribution containing Info and DVI files.
  16.  
  17. * You can now set the variables `binprefix' and/or `manprefix' in
  18.   Makefile.in (or on the command line when installing) to install GNU make
  19.   under a name other than `make' (i.e., ``make binprefix=g install''
  20.   installs GNU make as `gmake').
  21.  
  22. * The built-in Texinfo rules use the new variables `TEXI2DVI_FLAGS' for
  23.   flags to the `texi2dvi' script, and `MAKEINFO_FLAGS' for flags to the
  24.   Makeinfo program.
  25.  
  26. * The exit status of Make when it runs into errors is now 2 instead of 1.
  27.   The exit status is 1 only when using -q and some target is not up to date.
  28.   (This change was made to comply with POSIX.2.)
  29.  
  30. Version 3.70
  31.  
  32. * It is no longer a fatal error to have a NUL character in a makefile.
  33.   You should never put a NUL in a makefile because it can have strange
  34.   results, but otherwise empty lines full of NULs (such as produced by
  35.   the `xmkmf' program) will always work fine.
  36.  
  37. * The error messages for nonexistent included makefiles now refer to the
  38.   makefile name and line number where the `include' appeared, so Emacs's
  39.   C-x ` command takes you there (in case it's a typo you need to fix).
  40.  
  41. Version 3.69
  42.  
  43. * Implicit rule search for archive member references is now done in the
  44.   opposite order from previous versions: the whole target name `LIB(MEM)'
  45.   first, and just the member name and parentheses `(MEM)' second.
  46.  
  47. * Make now gives an error for an unterminated variable or function reference.
  48.   For example, `$(foo' with no matching `)' or `${bar' with no matching `}'.
  49.  
  50. * The new default variable `MAKE_VERSION' gives the version number of
  51.   Make, and a string describing the remote job support compiled in (if any).
  52.   Thus the value (in this release) is something like `3.69' or `3.69-Customs'.
  53.  
  54. * Commands in an invocation of the `shell' function are no longer run with
  55.   a modified environment like target commands are.  As in versions before
  56.   3.68, they now run with the environment that `make' started with.  We
  57.   have reversed the change made in version 3.68 because it turned out to
  58.   cause a paradoxical situation in cases like:
  59.  
  60.     export variable = $(shell echo value)
  61.  
  62.   When Make attempted to put this variable in the environment for a target
  63.   command, it would try expand the value by running the shell command
  64.   `echo value'.  In version 3.68, because it constructed an environment
  65.   for that shell command in the same way, Make would begin to go into an
  66.   infinite loop and then get a fatal error when it detected the loop.
  67.  
  68. * The commands given for `.DEFAULT' are now used for phony targets with no
  69.   commands.
  70.  
  71. Version 3.68
  72.  
  73. * You can list several archive member names inside parenthesis:
  74.   `lib(mem1 mem2 mem3)' is equivalent to `lib(mem1) lib(mem2) lib(mem3)'.
  75.  
  76. * You can use wildcards inside archive member references.  For example,
  77.   `lib(*.o)' expands to all existing members of `lib' whose names end in
  78.   `.o' (e.g. `lib(a.o) lib(b.o)'); `*.a(*.o)' expands to all such members
  79.   of all existing files whose names end in `.a' (e.g. `foo.a(a.o)
  80.   foo.a(b.o) bar.a(c.o) bar.a(d.o)'.
  81.  
  82. * A suffix rule `.X.a' now produces two pattern rules:
  83.     (%.o): %.X    # Previous versions produced only this.
  84.     %.a: %.X    # Now produces this as well, just like other suffixes.
  85.  
  86. * The new flag `--warn-undefined-variables' says to issue a warning message
  87.   whenever Make expands a reference to an undefined variable.
  88.  
  89. * The new `-include' directive is just like `include' except that there is
  90.   no error (not even a warning) for a nonexistent makefile.
  91.  
  92. * Commands in an invocation of the `shell' function are now run with a
  93.   modified environment like target commands are, so you can use `export' et
  94.   al to set up variables for them.  They used to run with the environment
  95.   that `make' started with.
  96.  
  97. Version 3.66
  98.  
  99. * `make --version' (or `make -v') now exits immediately after printing
  100.   the version number.
  101.  
  102. Version 3.65
  103.  
  104. * Make now supports long-named members in `ar' archive files.
  105.  
  106. Version 3.64
  107.  
  108. * Make now supports the `+=' syntax for a variable definition which appends
  109.   to the variable's previous value.  See the section `Appending More Text
  110.   to Variables' in the manual for full details.
  111.  
  112. * The new option `--no-print-directory' inhibits the `-w' or
  113.   `--print-directory' feature.  Make turns on `--print-directory'
  114.   automatically if you use `-C' or `--directory', and in sub-makes; some
  115.   users have found this behavior undesirable.
  116.  
  117. * The built-in implicit rules now support the alternative extension
  118.   `.txinfo' for Texinfo files, just like `.texinfo' and `.texi'.
  119.  
  120. Version 3.63
  121.  
  122. * Make now uses a standard GNU `configure' script.  See the new file
  123.   INSTALL for the new (and much simpler) installation procedure.
  124.  
  125. * There is now a shell script to build Make the first time, if you have no
  126.   other `make' program.  `build.sh' is created by `configure'; see README.
  127.  
  128. * GNU Make now completely conforms to the POSIX.2 specification for `make'.
  129.  
  130. * Elements of the `$^' and `$?' automatic variables that are archive
  131.   member references now list only the member name, as in Unix and POSIX.2.
  132.  
  133. * You should no longer ever need to specify the `-w' switch, which prints
  134.   the current directory before and after Make runs.  The `-C' switch to
  135.   change directory, and recursive use of Make, now set `-w' automatically.
  136.  
  137. * Multiple double-colon rules for the same target will no longer have their
  138.   commands run simultaneously under -j, as this could result in the two
  139.   commands trying to change the file at the same time and interfering with
  140.   one another.
  141.  
  142. * The `SHELL' variable is now never taken from the environment.
  143.   Each makefile that wants a shell other than the default (/bin/sh) must
  144.   set SHELL itself.  SHELL is always exported to child processes.
  145.   This change was made for compatibility with POSIX.2.
  146.  
  147. * Make now accepts long options.  There is now an informative usage message
  148.   that tells you what all the options are and what they do.  Try `make --help'.
  149.  
  150. * There are two new directives: `export' and `unexport'.  All variables are
  151.   no longer automatically put into the environments of the commands that
  152.   Make runs.  Instead, only variables specified on the command line or in
  153.   the environment are exported by default.  To export others, use:
  154.     export VARIABLE
  155.   or you can define variables with:
  156.     export VARIABLE = VALUE
  157.   or:
  158.     export VARIABLE := VALUE
  159.   You can use just:
  160.     export
  161.   or:
  162.     .EXPORT_ALL_VARIABLES:
  163.   to get the old behavior.  See the node `Variables/Recursion' in the manual
  164.   for a full description.
  165.  
  166. * The commands from the `.DEFAULT' special target are only applied to
  167.   targets which have no rules at all, not all targets with no commands.
  168.   This change was made for compatibility with Unix make.
  169.  
  170. * All fatal error messages now contain `***', so they are easy to find in
  171.   compilation logs.
  172.  
  173. * Dependency file names like `-lNAME' are now replaced with the actual file
  174.   name found, as with files found by normal directory search (VPATH).
  175.   The library file `libNAME.a' may now be found in the current directory,
  176.   which is checked before VPATH; the standard set of directories (/lib,
  177.   /usr/lib, /usr/local/lib) is now checked last.
  178.   See the node `Libraries/Search' in the manual for full details.
  179.  
  180. * A single `include' directive can now specify more than one makefile to
  181.   include, like this:
  182.     include file1 file2
  183.   You can also use shell file name patterns in an `include' directive:
  184.     include *.mk 
  185.  
  186. * The default directories to search for included makefiles, and for
  187.   libraries specified with `-lNAME', are now set by configuration.
  188.  
  189. * You can now use blanks as well as colons to separate the directories in a
  190.   search path for the `vpath' directive or the `VPATH' variable.
  191.  
  192. * You can now use variables and functions in the left hand side of a
  193.   variable assignment, as in "$(foo)bar = value".
  194.  
  195. * The `MAKE' variable is always defined as `$(MAKE_COMMAND) $(MAKEOVERRIDES)'.
  196.   The `MAKE_COMMAND' variable is now defined to the name with which make
  197.   was invoked.
  198.  
  199. * The built-in rules for C++ compilation now use the variables `$(CXX)' and
  200.   `$(CXXFLAGS)' instead of `$(C++)' and `$(C++FLAGS)'.  The old names had
  201.   problems with shells that cannot have `+' in environment variable names.
  202.  
  203. * The value of a recursively expanded variable is now expanded when putting
  204.   it into the environment for child processes.  This change was made for
  205.   compatibility with Unix make.
  206.  
  207. * A rule with no targets before the `:' is now accepted and ignored.
  208.   This change was made for compatibility with SunOS 4 make.
  209.   We do not recommend that you write your makefiles to take advantage of this.
  210.  
  211. * The `-I' switch can now be used in MAKEFLAGS, and are put there
  212.   automatically just like other switches.
  213.  
  214. Version 3.61
  215.  
  216. * Built-in rules for C++ source files with the `.C' suffix.
  217.   We still recommend that you use `.cc' instead.
  218.  
  219. * If commands are given too many times for a single target,
  220.   the last set given is used, and a warning message is printed.
  221.  
  222. * Error messages about makefiles are in standard GNU error format,
  223.   so C-x ` in Emacs works on them.
  224.  
  225. * Dependencies of pattern rules which contain no % need not actually exist
  226.   if they can be created (just like dependencies which do have a %).
  227.  
  228. Version 3.60
  229.  
  230. * A message is always printed when Make decides there is nothing to be done.
  231.   It used to be that no message was printed for top-level phony targets
  232.   (because "`phony' is up to date" isn't quite right).  Now a different
  233.   message "Nothing to be done for `phony'" is printed in that case.
  234.  
  235. * Archives on AIX now supposedly work.
  236.  
  237. * When the commands specified for .DEFAULT are used to update a target,
  238.   the $< automatic variable is given the same value as $@ for that target.
  239.   This is how Unix make behaves, and this behavior is mandated by POSIX.2.
  240.  
  241. Version 3.59
  242.  
  243. * The -n, -q, and -t options are not put in the `MAKEFLAGS' and `MFLAG'
  244.   variables while remaking makefiles, so recursive makes done while remaking
  245.   makefiles will behave properly.
  246.  
  247. * If the special target `.NOEXPORT' is specified in a makefile,
  248.   only variables that came from the environment and variables
  249.   defined on the command line are exported.
  250.  
  251. Version 3.58
  252.  
  253. * Suffix rules may have dependencies (which are ignored).
  254.  
  255. Version 3.57
  256.  
  257. * Dependencies of the form `-lLIB' are searched for as /usr/local/lib/libLIB.a
  258.   as well as libLIB.a in /usr/lib, /lib, the current directory, and VPATH.
  259.  
  260. Version 3.55
  261.  
  262. * There is now a Unix man page for GNU Make.  It is certainly not a replacement
  263. for the Texinfo manual, but it documents the basic functionality and the
  264. switches.  For full documentation, you should still read the Texinfo manual.
  265. Thanks to Dennis Morse of Stanford University for contributing the initial
  266. version of this.
  267.  
  268. * Variables which are defined by default (e.g., `CC') will no longer be put
  269. into the environment for child processes.  (If these variables are reset by the
  270. environment, makefiles, or the command line, they will still go into the
  271. environment.)
  272.  
  273. * Makefiles which have commands but no dependencies (and thus are always
  274.   considered out of date and in need of remaking), will not be remade (if they
  275.   were being remade only because they were makefiles).  This means that GNU
  276.   Make will no longer go into an infinite loop when fed the makefiles that
  277.   `imake' (necessary to build X Windows) produces.
  278.  
  279. * There is no longer a warning for using the `vpath' directive with an explicit
  280. pathname (instead of a `%' pattern).
  281.  
  282. Version 3.51
  283.  
  284. * When removing intermediate files, only one `rm' command line is printed,
  285. listing all file names.
  286.  
  287. * There are now automatic variables `$(^D)', `$(^F)', `$(?D)', and `$(?F)'.
  288. These are the directory-only and file-only versions of `$^' and `$?'.
  289.  
  290. * Library dependencies given as `-lNAME' will use "libNAME.a" in the current
  291. directory if it exists.
  292.  
  293. * The automatic variable `$($/)' is no longer defined.
  294.  
  295. * Leading `+' characters on a command line make that line be executed even
  296. under -n, -t, or -q (as if the line contained `$(MAKE)').
  297.  
  298. * For command lines containing `$(MAKE)', `${MAKE}', or leading `+' characters,
  299. only those lines are executed, not their entire rules.
  300. (This is how Unix make behaves for lines containing `$(MAKE)' or `${MAKE}'.)
  301.  
  302. Version 3.50
  303.  
  304. * Filenames in rules will now have ~ and ~USER expanded.
  305.  
  306. * The `-p' output has been changed so it can be used as a makefile.
  307. (All information that isn't specified by makefiles is prefaced with comment
  308. characters.)
  309.  
  310. Version 3.49
  311.  
  312. * The % character can be quoted with backslash in implicit pattern rules,
  313. static pattern rules, `vpath' directives, and `patsubst', `filter', and
  314. `filter-out' functions.  A warning is issued if a `vpath' directive's
  315. pattern contains no %.
  316.  
  317. * The `wildcard' variable expansion function now expands ~ and ~USER.
  318.  
  319. * Messages indicating failed commands now contain the target name:
  320.     make: *** [target] Error 1
  321.  
  322. * The `-p' output format has been changed somewhat to look more like
  323. makefile rules and to give all information that Make has about files.
  324.  
  325. Version 3.48
  326.  
  327. Version 3.47
  328.  
  329. * The `-l' switch with no argument removes any previous load-average limit.
  330.  
  331. * When the `-w' switch is in effect, and Make has updated makefiles,
  332. it will write a `Leaving directory' messagfe before re-executing itself.
  333. This makes the `directory change tracking' changes to Emacs's compilation
  334. commands work properly.
  335.  
  336. Version 3.46
  337.  
  338. * The automatic variable `$*' is now defined for explicit rules,
  339. as it is in Unix make.
  340.  
  341. Version 3.45
  342.  
  343. * The `-j' switch is now put in the MAKEFLAGS and MFLAGS variables when
  344. specified without an argument (indicating infinite jobs).
  345. The `-l' switch is not always put in the MAKEFLAGS and MFLAGS variables.
  346.  
  347. * Make no longer checks hashed directories after running commands.
  348. The behavior implemented in 3.41 caused too much slowdown.
  349.  
  350. Version 3.44
  351.  
  352. * A dependency is NOT considered newer than its dependent if
  353. they have the same modification time.  The behavior implemented
  354. in 3.43 conflicts with RCS.
  355.  
  356. Version 3.43
  357.  
  358. * Dependency loops are no longer fatal errors.
  359.  
  360. * A dependency is considered newer than its dependent if
  361. they have the same modification time.
  362.  
  363. Version 3.42
  364.  
  365. * The variables F77 and F77FLAGS are now set by default to $(FC) and
  366. $(FFLAGS).  Makefiles designed for System V make may use these variables in
  367. explicit rules and expect them to be set.  Unfortunately, there is no way to
  368. make setting these affect the Fortran implicit rules unless FC and FFLAGS
  369. are not used (and these are used by BSD make).
  370.  
  371. Version 3.41
  372.  
  373. * Make now checks to see if its hashed directories are changed by commands.
  374. Other makes that hash directories (Sun, 4.3 BSD) don't do this.
  375.  
  376. Version 3.39
  377.  
  378. * The `shell' function no longer captures standard error output.
  379.  
  380. Version 3.32
  381.  
  382. * A file beginning with a dot can be the default target if it also contains
  383. a slash (e.g., `../bin/foo').  (Unix make allows this as well.)
  384.  
  385. Version 3.31
  386.  
  387. * Archive member names are truncated to 15 characters.
  388.  
  389. * Yet more USG stuff.
  390.  
  391. * Minimal support for Microport System V (a 16-bit machine and a
  392. brain-damaged compiler).  This has even lower priority than other USG
  393. support, so if it gets beyond trivial, I will take it out completely.
  394.  
  395. * Revamped default implicit rules (not much visible change).
  396.  
  397. * The -d and -p options can come from the environment.
  398.  
  399. Version 3.30
  400.  
  401. * Improved support for USG and HPUX (hopefully).
  402.  
  403. * A variable reference like `$(foo:a=b)', if `a' contains a `%', is
  404. equivalent to `$(patsubst a,b,$(foo))'.
  405.  
  406. * Defining .DEFAULT with no deps or commands clears its commands.
  407.  
  408. * New default implicit rules for .S (cpp, then as), and .sh (copy and make
  409. executable).  All default implicit rules that use cpp (even indirectly), use
  410. $(CPPFLAGS).
  411.  
  412. Version 3.29
  413.  
  414. * Giving the -j option with no arguments gives you infinite jobs.
  415.  
  416. Version 3.28
  417.  
  418. * New option: "-l LOAD" says not to start any new jobs while others are
  419. running if the load average is not below LOAD (a floating-point number).
  420.  
  421. * There is support in place for implementations of remote command execution
  422. in Make.  See the file remote.c.
  423.  
  424. Version 3.26
  425.  
  426. * No more than 10 directories will be kept open at once.
  427. (This number can be changed by redefining MAX_OPEN_DIRECTORIES in dir.c.)
  428.  
  429. Version 3.25
  430.  
  431. * Archive files will have their modification times recorded before doing
  432. anything that might change their modification times by updating an archive
  433. member.
  434.  
  435. Version 3.20
  436.  
  437. * The `MAKELEVEL' variable is defined for use by makefiles.
  438.  
  439. Version 3.19
  440.  
  441. * The recursion level indications in error messages are much shorter than
  442. they were in version 3.14.
  443.  
  444. Version 3.18
  445.  
  446. * Leading spaces before directives are ignored (as documented).
  447.  
  448. * Included makefiles can determine the default goal target.
  449. (System V Make does it this way, so we are being compatible).
  450.  
  451. Version 3.14.
  452.  
  453. * Variables that are defaults built into Make will not be put in the
  454. environment for children.  This just saves some environment space and,
  455. except under -e, will be transparent to sub-makes.
  456.  
  457. * Error messages from sub-makes will indicate the level of recursion.
  458.  
  459. * Hopefully some speed-up for large directories due to a change in the
  460. directory hashing scheme.
  461.  
  462. * One child will always get a standard input that is usable.
  463.  
  464. * Default makefiles that don't exist will be remade and read in.
  465.  
  466. Version 3.13.
  467.  
  468. * Count parentheses inside expansion function calls so you can
  469. have nested calls: `$(sort $(foreach x,a b,$(x)))'.
  470.  
  471. Version 3.12.
  472.  
  473. * Several bug fixes, including USG and Sun386i support.
  474.  
  475. * `shell' function to expand shell commands a la `
  476.  
  477. * If the `-d' flag is given, version information will be printed.
  478.  
  479. * The `-c' option has been renamed to `-C' for compatibility with tar.
  480.  
  481. * The `-p' option no longer inhibits other normal operation.
  482.  
  483. * Makefiles will be updated and re-read if necessary.
  484.  
  485. * Can now run several commands at once (parallelism), -j option.
  486.  
  487. * Error messages will contain the level of Make recursion, if any.
  488.  
  489. * The `MAKEFLAGS' and `MFLAGS' variables will be scanned for options after
  490. makefiles are read.
  491.  
  492. * A double-colon rule with no dependencies will always have its commands run.
  493. (This is how both the BSD and System V versions of Make do it.)
  494.  
  495. Version 3.05
  496.  
  497. (Changes from versions 1 through 3.05 were never recorded.  Sorry.)
  498.  
  499. ----------------------------------------------------------------------
  500. Copyright information:
  501.  
  502. Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  503.  
  504.    Permission is granted to anyone to make or distribute verbatim copies
  505.    of this document as received, in any medium, provided that the
  506.    copyright notice and this permission notice are preserved,
  507.    thus giving the recipient permission to redistribute in turn.
  508.  
  509.    Permission is granted to distribute modified versions
  510.    of this document, or of portions of it,
  511.    under the above conditions, provided also that they
  512.    carry prominent notices stating who last changed them.
  513.  
  514. Local variables:
  515. version-control: never
  516. end:
  517.